/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.kz.shange.service;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import org.kz.shange.models.IAuthorDao;

/**
 *
 * @author Administrator
 */
 
@Path("/demoSvc")
@Consumes("application/vnd.customer+json; charset=UTF-8")
@Produces("application/vnd.customer+json; charset=UTF-8")
public class DemoSvc {
    private IAuthorDao authorDao;
    @GET 
    @Path("/test/{lw}/")
    public String test(@PathParam("lw") String lw){
        System.out.println("==============="+lw);
        return "欢迎"+lw;
        
    }
    @GET 
    @Path("/test2/")
    public void test2(){
        System.out.println("======test2===authorDao======"+authorDao);
        
        
    }

    public IAuthorDao getAuthorDao() {
        return authorDao;
    }

    public void setAuthorDao(IAuthorDao authorDao) {
        this.authorDao = authorDao;
    }
}
